// 简化的类型定义（使用JS而不是TS以避免类型错误）

// 导航项目类型
export const createNavigationItem = (id, label, icon) => ({
  id,
  label,
  icon
})

// 标题栏Props类型
export const createTitleBarProps = (chatTitle, clientName, onlineStatus, actions) => ({
  chatTitle,
  clientName,
  onlineStatus,
  actions
})

// 聊天项目类型
export const createChatItem = (id, name, avatar, lastMessage, timestamp, unreadCount, status) => ({
  id,
  name,
  avatar,
  lastMessage,
  timestamp,
  unreadCount,
  status
})

// 消息类型
export const createMessage = (id, senderId, senderName, content, timestamp, type, isOwn) => ({
  id,
  senderId,
  senderName,
  content,
  timestamp,
  type,
  isOwn
})

// 客户数据类型
export const createClientData = (id, name, avatar, phone, email, company, position, location, tags, notes, preferences, history, createdAt, lastContactAt, updatedAt) => ({
  id,
  name,
  avatar,
  phone,
  email,
  company,
  position,
  location,
  tags,
  notes,
  preferences,
  history,
  createdAt,
  lastContactAt,
  updatedAt
})

// 标签类型
export const createTag = (id, name, color) => ({
  id,
  name,
  color
})